package br.biofoco.p2p.rpc;

public class RestEndPoint implements EndPoint {
		
	private final int port;
	private final String address;

	public RestEndPoint(String address, int port) {
		this.address = address;
		this.port = port;
	}

	@Override
	public int getPort() {
		return port;
	}

	@Override
	public Protocol getProtocol() {
		return Protocol.REST;
	}
	
	public String getAddress() {
		return address;
	}
	
	@Override
	public String toString() {
		return address + ":" + port;
	}

}
